package com.ny.service;

import com.ny.entity.User;

import java.util.List;

public interface UserService {
    public List<User> findAll();
    public User findUser(String username, String password);
    // 用户注册
    public boolean register(User user);



//    发送验证码
    public void  sendEmail(String email);
//    判断验证码是否存在
    public boolean findEmail(String email,String code);
    //    查询邮箱号是否存在
    public int findUserByEmail(String email);
//    通过邮箱号修改密码
    public int updateUser( String email ,String password);
}
